﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ExcelHelper.Models
{
    public class TemplateReplacingItem
    {
        public string? StringToReplace { get; set; }

        /// <summary>
        /// ""||null == StringToReplace本身
        /// "xx" == context.xx
        /// "xx.yy" ==context.xx.yy
        /// "xx.yy.[i]" == context.xx.yy[i]
        /// "xx.yy.[i].zz" == context.xx.yy[i].zz
        /// "[i].xx" == context[i].xx
        /// </summary>
        public string? PathToData { get; set; }

        /// <summary>
        /// 请参照 string.Format()
        /// 例如：
        /// "日期：{0:yyyy-MM-dd}"
        /// "{0:0.0000}"
        /// </summary>
        public string? StringFormat { get; set; }
        
        public List<object>? Data { get; set; }

        public int DataIndex { get; set; } = 0;


        
    }
}
